
<ui:composition
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">

  <p:dialog id="confirmarBorrado" widgetVar="dlgConfirmarBorrado"
                  header="Confirmación de borrado" width="620"
                  draggable="false" resizable="false" position="center" modal="true">

  <div style="width: 580px;">

       <div style="float: left; position: relative; width: 100%; padding: 10px;">


       </div>

       <div style="float: left; position: relative; width: 100%; ">

           <div style="float: left; position: relative; width: 110px;">

               <p:graphicImage value="#{aplicacionBean.parametro.pathImagenesProductos}#{catalogoBean.itemCatalogo.imgchi}.jpg" width="100" height="100"
                                rendered="#{not empty catalogoBean.itemCatalogo.imgchi}" />

               <p:graphicImage value="#{aplicacionBean.parametro.pathImagenesProductos}intercap.jpg" width="100" height="100" rendered="#{empty catalogoBean.itemCatalogo.imgchi}"
                                style="border: 1px solid lightgrey;" />


           </div>
           <div style="float: left; position: relative; width: 380px; padding-top: 25px;" align="center">

                <h:outputText value="¿Esta seguro de borrar #{catalogoBean.itemCatalogo.descrp}?" style="font-size: 12px; font-weight: bold;" />

           </div>

       </div>

       <div style="float: left; position: relative; width: 100%; padding: 10px;" align="center">

            <p:commandButton value="Borrar Producto" icon="ok16" id="btnBorrar"
                             update="@form,:fCabecera"
                             action="#{carritoBean.eliminarProductoItemCatalogo(catalogoBean.itemCatalogo)}"
                             process="@this"
                             oncomplete="PF('dlgConfirmarBorrado').hide();" />

            <p:commandButton value="Cancelar" icon="delete24"  onclick="PF('dlgConfirmarBorrado').hide()" />

        </div>



   </div>   
    
   <ui:include src="../template/ajaxStatus-I.xhtml" />

  </p:dialog>

</ui:composition>
